package com.hl.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Primary;
import org.springframework.stereotype.Service;
import com.hl.mapper.WithdrawalApplicationsMapper;
import com.hl.domain.WithdrawalApplications;
import com.hl.service.IWithdrawalApplicationsService;

/**
 * 提现申请记录Service业务层处理
 * 
 * @author vv
 * @date 2025-08-06
 */
@Service
@Primary
public class WithdrawalApplicationsServiceImpl implements IWithdrawalApplicationsService 
{
    @Autowired
    private WithdrawalApplicationsMapper withdrawalApplicationsMapper;

    /**
     * 查询提现申请记录
     * 
     * @param id 提现申请记录主键
     * @return 提现申请记录
     */
    @Override
    public WithdrawalApplications selectWithdrawalApplicationsById(String id)
    {
        return withdrawalApplicationsMapper.selectWithdrawalApplicationsById(id);
    }

    /**
     * 查询提现申请记录列表
     * 
     * @param withdrawalApplications 提现申请记录
     * @return 提现申请记录
     */
    @Override
    public List<WithdrawalApplications> selectWithdrawalApplicationsList(WithdrawalApplications withdrawalApplications)
    {
        return withdrawalApplicationsMapper.selectWithdrawalApplicationsList(withdrawalApplications);
    }

    /**
     * 新增提现申请记录
     * 
     * @param withdrawalApplications 提现申请记录
     * @return 结果
     */
    @Override
    public int insertWithdrawalApplications(WithdrawalApplications withdrawalApplications)
    {
        return withdrawalApplicationsMapper.insertWithdrawalApplications(withdrawalApplications);
    }

    /**
     * 修改提现申请记录
     * 
     * @param withdrawalApplications 提现申请记录
     * @return 结果
     */
    @Override
    public int updateWithdrawalApplications(WithdrawalApplications withdrawalApplications)
    {
        return withdrawalApplicationsMapper.updateWithdrawalApplications(withdrawalApplications);
    }

    /**
     * 批量删除提现申请记录
     * 
     * @param ids 需要删除的提现申请记录主键
     * @return 结果
     */
    @Override
    public int deleteWithdrawalApplicationsByIds(String[] ids)
    {
        return withdrawalApplicationsMapper.deleteWithdrawalApplicationsByIds(ids);
    }

    /**
     * 删除提现申请记录信息
     * 
     * @param id 提现申请记录主键
     * @return 结果
     */
    @Override
    public int deleteWithdrawalApplicationsById(String id)
    {
        return withdrawalApplicationsMapper.deleteWithdrawalApplicationsById(id);
    }
}
